﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="createuserwizard.aspx.cs" Inherits="SysYcjy_createuserwizard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
     <link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">  
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" Height="287px" Width="820px" OnFinishButtonClick="Wizard1_FinishButtonClick">
            <WizardSteps>
                <asp:WizardStep ID="WizardStep1" runat="server" Title="#">
                    
                    <table border="0" cellspacing="0" style="width: 100%" class="font33">
                        <tr>
                          <td colspan="2" class="font33" style="width: 117px; height: 14px">
                            <b><asp:Label ID="Label1" runat="server" Text="请选择注册身份" CssClass="font33" Width="200px"></asp:Label></b>
                          </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="font33" style="width: 117px; height: 14px">
                              <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" 
                        Width="250px" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" RepeatDirection="Horizontal" CssClass="font33">
                        <asp:ListItem Selected="True">学员</asp:ListItem>
                        <asp:ListItem>老师</asp:ListItem>
                              </asp:RadioButtonList>
                          </td>
                        </tr>
                        <tr>
                          <td colspan="2" class="font33" style="width: 117px"><b>填写注册信息</b></td>
                        </tr>
                        <tr>
                          <td align="center" bgcolor="#edf2e3" style="width: 117px">                        
                              
                    <asp:Label ID="Label3" runat="server"  Text="用户名" Width="48px"></asp:Label>
                                                   </td>
                            <td bgcolor="#edf2e3" style="width: 577px">
                                <asp:TextBox ID="txtUsername" runat="server" AutoPostBack="True" OnTextChanged="txtUsername_TextChanged" Width="214px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="yz1RFVusername1" runat="server" ControlToValidate="txtUsername"
                        Display="Dynamic" ErrorMessage="必须输入用户名！" CssClass="font33"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="font3" style="width: 117px; height: 19px">                               
                    <asp:Label ID="Label4" runat="server"  Text="密码" Width="47px"></asp:Label>
                               </td>
                            <td style="width: 577px; height: 19px" align=left>
                    <asp:TextBox ID="txtPwd" runat="server" Width="214px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="yz2RegularExpressionValidator2" runat="server" ControlToValidate="txtPwd"
                        ErrorMessage="密码设置不规范！" ValidationExpression=".{7,}"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPwd"
                        Display="Dynamic" ErrorMessage="密码不能为空！"></asp:RequiredFieldValidator>
                    </td>
                        </tr>
                        <tr>
                          <td align="center" bgcolor="#edf2e3" class="font33" style="width: 117px; height: 19px">                        
                    <asp:Label ID="Label5" runat="server"  Text="确认密码" Width="70px"></asp:Label>
                            </td>
                            <td bgcolor="#edf2e3" style="width: 577px">
                    <asp:TextBox ID="txtPwd1" runat="server" Width="214px" ></asp:TextBox>
                    <asp:CompareValidator ID="yz3CompareValidator1" runat="server" ControlToCompare="txtPwd"
                        ControlToValidate="txtPwd1" ErrorMessage="二次密码输入不相符！"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="font33" style="width: 117px">                      
                    <asp:Label ID="Label6" runat="server"  Text="电子邮件" Width="70px"></asp:Label>
                            </td>
                            <td style="width: 577px">
                    <asp:TextBox ID="txtEmail" runat="server" Width="214px" AutoPostBack="True" OnTextChanged="txtEmail_TextChanged"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="yz4RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="电子邮件输入不规范！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmail"
                        Display="Dynamic" ErrorMessage="必须输入电子邮件！"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" bgcolor="#edf2e3" class="font33" style="width: 117px; height: 26px;">                 
                    <asp:Label ID="Label7" runat="server"  Text="安全问题" Width="70px"></asp:Label>
                    </td>
                            <td bgcolor="#edf2e3" style="width: 577px; height: 26px;">
                    <asp:TextBox ID="txtWenti" runat="server" Width="214px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="yz5RequiredFieldValidator2" runat="server" ControlToValidate="txtWenti"
                        Display="Dynamic" ErrorMessage="必须输入安全问题！"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="font33" style="width: 117px">
                              <asp:Label ID="Label8" runat="server"  Text="安全答案" Width="70px"></asp:Label>
                    </td>
                            <td style="width: 577px" align="left">
                    <asp:TextBox ID="txtWenti1" runat="server" Width="214px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="yz6RequiredFieldValidator3" runat="server" ControlToValidate="txtWenti1"
                        Display="Dynamic" ErrorMessage="必须输入安全答案！"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="font3" style="width: 117px">&nbsp;
                          </td>
                            <td style="width: 577px">&nbsp;
                          </td>
                        </tr>
                </table>
                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep2" runat="server" Title="#">
                    <table border="0" cellspacing="0" style="width: 100%" class="font33">
                        <tr>                        
                          <td bgcolor="#ffffff" class="font33" colspan="2"><b>填写详细信息</b></td>
                          <td width="886" bgcolor="#ffffff" style="width: 507px">&nbsp;</td>
                        </tr>
                        <tr>
                            <td bgcolor="#edf2e3" class="font33" colspan="2">
                                姓名（*）</td>
                            <td bgcolor="#edf2e3" style="width: 507px">
                                <asp:TextBox ID="TextBox1" runat="server" Width="161px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="yz7RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                    Display="Dynamic" ErrorMessage="必须输入用户姓名！"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="font33" style="width: 968px" colspan="2">
                                工作单位</td>
                            <td style="width: 507px">
                                <asp:TextBox ID="TextBox2" runat="server" Width="360px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                          <td bgcolor="#edf2e3" class="font33" style="width: 968px" colspan="2">
                                所属机构（<span class="style28">*</span>）</td>
                            <td bgcolor="#edf2e3" style="width: 507px">
                                <asp:TextBox ID="txtjigou" runat="server" ReadOnly="True" Width="186px"></asp:TextBox>
                             <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
                                    DataTextField="jigou" DataValueField="jigou" Visible="False" Width="186px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AppendDataBoundItems=true >   
                                    <asp:ListItem Text="请选择"></asp:ListItem>      
                                </asp:DropDownList>
                             <%-- <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
                                    DataTextField="jigou" DataValueField="jigou" Visible="False" Width="186px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                </asp:DropDownList>--%>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtjigou"
                                    Display="Dynamic" ErrorMessage="必须输入机构名称！"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                         <td class="font3" style="width: 968px" colspan="2">
                                所在城市</td>
                            <td style="width: 507px">
                                <asp:TextBox ID="TextBox3" runat="server" Width="160px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                       <td bgcolor="#edf2e3" class="font3" style="width: 968px" colspan="2">
                                手机</td>
                            <td bgcolor="#edf2e3" style="width: 507px">
                                <asp:TextBox ID="TextBox4" runat="server" Width="422px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                        <td class="font3" style="width: 968px" colspan="2">
                                备用信箱</td>
                            <td style="width: 507px">
                                <asp:TextBox ID="TextBox5" runat="server" Width="422px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                        <td bgcolor="#edf2e3" style="width: 968px" colspan="2">
                                <span class="font3">
                                个人简介</span></td>
                            <td bgcolor="#edf2e3" style="width: 507px">
                                <asp:TextBox ID="TextBox6" runat="server" Height="139px" TextMode="MultiLine" Width="425px"></asp:TextBox>
                            </td>
                        </tr>                        
                </table>
                </asp:WizardStep>
            </WizardSteps>
    <SideBarButtonStyle ForeColor="White" Width="0px" />
    <SideBarStyle ForeColor="White" Width="0px" />
        </asp:Wizard>
    <%-- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
            SelectCommand="SELECT DISTINCT [jigou] FROM [account] WHERE (([role] = @role) OR ([role] = @role2)) ORDER BY [jigou]">
            <SelectParameters>
                <asp:Parameter DefaultValue="机构" Name="role" Type="String" />
                <asp:Parameter DefaultValue="管理员" Name="role2" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>--%>
</form>
</body>
</html>
